home *** CD-ROM | disk | FTP | other *** search
- Path: easy.in-chemnitz.de!mkmk!floh
- From: floh@mkmk.in-chemnitz.de (Andre Weissflog)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: manipulating the stack in C
- Message-ID: <AxR-x*pE0@mkmk.in-chemnitz.de>
- Date: Sun, 28 Jan 1996 15:33:56 CET
- Reply-To: floh@mkmk.in-chemnitz.de
- References: <4e8b20$lsq@newshost.lanl.gov> <Sh++x*aE0@mkmk.in-chemnitz.de> <jasonb.822718223@cs.uwa.edu.au>
- Distribution: world
- Organization: private uucp site
- X-Newsreader: Arn V 1.04
-
- In article <jasonb.822718223@cs.uwa.edu.au>, Jason S Birch writes:
-
- > floh@mkmk.in-chemnitz.de (Andre Weissflog) writes:
- >
- > >Since C pushes the last arg first, you will find num_args
- > ^^^
- > I haven't got docs with me right now, but I think you'll find that
- > this is compiler-dependent - ANSI C, AFAIR, doesn't define the order
- > arguments will be put on the stack, or even, indeed, that they *will*
-
- Yes, you're right.
- The only safe way to call assembly functions from C or vice versa
- is to dig in the docs and check the compilers calling conventions.
-
- Bye,
- -Floh.
-
- ====//=== Andre Weissflog <floh@mkmk.in-chemnitz.de> =======
- ...// Sep'95: Return Of The Living Death...................
- \\// 90% of everything is crap (Sturgeon's Law)...........
- =\\===============================================Amiga!=
-
-